import request from "../../request/request"

// 查询医生列表
export function listDoctors(query) {
  return request({
    url: '/doctor/getDoctor',
    method: 'get',
    params: query
  })
}

// 查询医生详细
export function getDoctors(id) {
  return request({
    url: '/doctor/doctorXx/' + id,
    method: 'get'
  })
}

// 新增医生
export function addDoctors(data) {
  return request({
    url: '/doctor/addDoctor',
    method: 'post',
    data: data
  })
}

// 修改医生
export function updateDoctors(data) {
  return request({
    url: '/doctor/updateDoctors',
    method: 'put',
    data: data
  })
}

// 删除医生
export function delDoctors(id) {
  return request({
    url: '/doctor/delDoctors/' + id,
    method: 'delete'
  })
}
export function getBigdep(){
  return request({
    url:'/doctor/getBigdep',
    method:'get'
  })
}
export function getHospition(){
  return request({
    url:'/doctor/getHospition',
    method:'get'
  })
}

/**
 * 对应医生的患者信息
 * @param doctorId
 * @returns {*}
 * @constructor
 */
export function PatientBydoctorId(doctorId){
  return request({
    url:'/doctor/patientBydoctorId/'+doctorId,
    method:'get'
  })
}

/**
 * 医生评价
 * @param doctorId
 * @returns {*}
 * @constructor
 */
export function Patienevaluation(doctorId){
  return request({
    url:'/doctor/PatienevaluationBydoctorId/'+doctorId,
    method:'get'
  })
}

